import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    
          {
      path: '/',
      name: 'GetMain',
      component: () => import('../views/GetMain.vue'),
      children:[
      {
      path: '/GetTransfer',
      name: 'GetTransfer',
      component: () => import('../views/GetTransfer.vue'),
    }, {
      path: '/GetLog',
      name: 'GetLog',
      component: () => import('../views/GetLog.vue'),
    },
    {
      path: '/GetWarehouse',
      name: 'GetWarehouse',
      component: () => import('../views/GetWarehouse.vue'),
    },
     {
      path: '/Getinbound',
      name: 'Getinbound',
      component: () => import('../views/Getinbound.vue'),
    },
     {
      path: '/Getoutbound',
      name: 'Getoutbound',
      component: () => import('../views/Getoutbound.vue'),
    },
      ]
    },

    {
      path: '/home',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue'),
    },
  ],
})

export default router
